<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>角色管理</title>
<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css" />
<link href="${basePath}/css/style-1.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${basePath}/css/default_user_com.css" media="all">
<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" type="text/css" href="${basePath}/js/layer/skin/layer.css" />
<script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
<#assign menu_index="menu_107">
<#assign current='menu_sysrole'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
                    <#include "/include/left.html"/>
                        <#include "/include/wxtop.html"/>
                    <div class="content">
						<div class="cLine">
							<div class="pageNavigator left">
								<#--
								<a class="btnGrayS" href="${basePath}/admin/role/toadd">
									<img class="vm" src="${basePath}/images/add.png">&nbsp;&nbsp;新增
								</a>
								-->
							</div>
							<div class="pageNavigator right">
								<form action="${basePath}/admin/role/index" method="post">
									<input class="px" name="roleName" placeholder="输入角色名称查询" value="${roleName}" />
									<input class="btnGreen" type="submit" value="查询"/>
								</form>
							</div>
						</div>
						<div class="msgWrap">
							<table class="ListProduct Shallow_border_color" border="0" cellSpacing="0" cellPadding="0" width="100%">
								<thead>
									<tr>
										<th>编号</th>
										<th>角色名称</th>
										<th>角色说明</th>
										<th>使用状态</th>
										<th>创建时间</th>
										<#-- <th>排序</th> -->
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<#if page?exists>
									<#list page.recordList as bean>
									<tr>
										<td valign="middle" align="center">${page.pernum*(page.currentPage-1)+bean_index+1}</td>
										<td align="center"><span>${bean.roleName?default('')}</span></td>
										<td>${bean.roleDecs?default('')}</td>
										<td><p><#if bean.roleStatus!=0>启用<#else>停用</#if></td>
										<td>${bean.createTime?datetime}</td>
										<#-- <td style="width:70px;">${bean.roleOrder}</td> -->
										<td class="norightborder left">
											<a href="${basePath}/admin/role/toedit?id=${bean.id?default(0)}">修改</a>
											<#--
											<a href="javascript:void(0);" onclick="removeOne('${bean.id}')">删除</a>
											-->
											<#if bean.roleStatus==0>
												<a href="javascript:void(0);" onclick="stopit('${bean.id}','1')">启用</a>
											<#else>
												<a href="javascript:void(0);" onclick="stopit('${bean.id}','0')">停用</a>
											</#if>
											<a href="javascript:void(0);" onclick="authrize('${bean.id}')">权限</a>
										</td>
									</tr>
									</#list>
									</#if>
								</tbody>
							</table>
						</div>
						
						<#assign formUrl="${basePath}/admin/role/index?">
						<#include "/include/pagination.html">
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
		<!--底部-->
	</div>
	<!--ad start-->
	<!--ad end-->
	</div>
	</div>
	</div>
	<#include "/include/footer.html"/>
	<script type="text/javascript">var basepath = '${basePath}';</script>
	<script src="${basePath}/js/system/include_role_list.js" type="text/javascript"></script>
</body>
</html>